const mongoose = require('./db')
var Schema = mongoose.Schema


//注册 
let Root = new Schema({
    phone: String,     //账号
    password: String,  //密码
    nickname: String,  //账号设置昵称
    imgUrl: String,    //头像
    base: String,      //人脸数据
    interest: String,  //兴趣
})


let rootModel = mongoose.model('root', Root, 'root')







module.exports = {
    rootModel, //用户表
}